This forum is closed to new posts and
responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:
RE: trapping background image size ~Kirk Nimweplopoopsi 20.Nov.03 04:36 PM a Web browser Domino Designer 6.0.1 CF2All Platforms
I have put this code into the querysave event and it works but only once the document has already been saved. Is there a way to amend it so that the document can't be saved if the background is too big ?
Thanks
Paul
Sub Querysave(Source As Notesuidocument, Continue As Variant)
Dim workspace As New NotesUIWorkspace
Dim uidoc As NotesUIDocument
Set uidoc = workspace.CurrentDocument
Dim doc As notesdocument
Set doc = uidoc.Document
Dim item As notesitem
If doc.HasItem("$Background") Or doc.HasItem("$BackgroundR5") Then
If doc.HasItem("$Background") Then
Set item = doc.GetFirstItem("$Background")
Msgbox(item.ValueLength)
End If
If doc.HasItem("$BackgroundR5") Then
Set item = doc.GetFirstItem("$BackgroundR5")
Msgbox(item.ValueLength)
End If
End If
End Sub